package n03;

public class N04 {

	public void f1() throws Exception { //交给调用者处理异常
		throw new Exception("出错啦~"); //抛出异常
	}
	public void f2() { //自己处理异常
		try {
			throw new Exception("出错啦~"); //抛出异常
		}catch(Exception e) {
			
		}
	}
	public void f3(){
		throw new RuntimeException("出错啦~");
	}
	public static void main(String[] args) {
		

	}

}
